home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13552 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1008 b 

  1. Path: athena.ulaval.ca!news
  2. From: duchen00@gel.ulaval.ca (Francois Duchene)
  3. Newsgroups: comp.lang.c++
  4. Subject: Many instance of a class
  5. Date: Mon, 25 Mar 1996 23:50:51 GMT
  6. Organization: Universite Laval
  7. Message-ID: <4j7b28$8d4@athena.ulaval.ca>
  8. NNTP-Posting-Host: ragueneau.gel.ulaval.ca
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi everyone
  12.  
  13.         I am currently writing an object oriented program with Visual
  14. C++
  15. and I have a problem with classes and variables scope :
  16.  
  17. I have four different classes. Three of them have member functions
  18. that must
  19. be able to access all member variables of the fourth class (let's call
  20. it
  21. "range").  The problem is that I need a hundread instances of  the
  22. "range"
  23. class. 
  24.  
  25. I want to be able to access any member variable of an instance of
  26. "range"
  27. from within any of the three others classes (member functions). 
  28.  
  29. How can I do this?
  30.  
  31. Thanks for any answer.
  32.  
  33. Francois Duchene
  34. duchen00@gel.ulaval.ca
  35.  
  36. N.B.: Please E-MAIL me since I don't read this group on a regular
  37. basis.
  38.  
  39.  
  40.  
  41.  
  42.